crypto/tls.halfConn.setErrorLocked (method)

39 uses

	crypto/tls (current package)
		conn.go#L196: func (hc *halfConn) setErrorLocked(err error) error {
		conn.go#L618: 		return c.in.setErrorLocked(errors.New("tls: internal error: attempted to read record with pending application data"))
		conn.go#L623: 		return c.in.setErrorLocked(errors.New("tls: internal error: attempted to read record with QUIC transport"))
		conn.go#L635: 			c.in.setErrorLocked(err)
		conn.go#L648: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, "unsupported SSLv2 handshake received"))
		conn.go#L662: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L670: 			return c.in.setErrorLocked(c.newRecordHeaderError(c.conn, "first record does not look like a TLS handshake"))
		conn.go#L676: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L680: 			c.in.setErrorLocked(err)
		conn.go#L689: 		return c.in.setErrorLocked(c.sendAlert(err.(alert)))
		conn.go#L692: 		return c.in.setErrorLocked(c.sendAlert(alertRecordOverflow))
		conn.go#L697: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L707: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L712: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L716: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L719: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L722: 			return c.in.setErrorLocked(io.EOF)
		conn.go#L734: 			return c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
		conn.go#L741: 			return c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
		conn.go#L743: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L748: 			return c.in.setErrorLocked(c.sendAlert(alertDecodeError))
		conn.go#L752: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L763: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L766: 			return c.in.setErrorLocked(c.sendAlert(err.(alert)))
		conn.go#L771: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L785: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L799: 		return c.in.setErrorLocked(errors.New("tls: too many ignored records"))
		conn.go#L845: 		return c.out.setErrorLocked(&net.OpError{Op: "local error", Err: err})
		conn.go#L862: 	return c.out.setErrorLocked(&net.OpError{Op: "local error", Err: err})
		conn.go#L1115: 		return nil, c.in.setErrorLocked(fmt.Errorf("tls: handshake message of length %d bytes exceeds maximum of %d bytes", n, maxHandshakeSize))
		conn.go#L1174: 		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L1183: 		return nil, c.in.setErrorLocked(c.sendAlert(alertDecodeError))
		conn.go#L1249: 				return n, c.out.setErrorLocked(err)
		conn.go#L1256: 	return n + m, c.out.setErrorLocked(err)
		conn.go#L1318: 		return c.in.setErrorLocked(errors.New("tls: too many non-advancing records"))
		conn.go#L1338: 		return c.in.setErrorLocked(errors.New("tls: received unexpected key update message"))
		conn.go#L1343: 		return c.in.setErrorLocked(c.sendAlert(alertInternalError))
		conn.go#L1361: 			c.out.setErrorLocked(err)
		quic.go#L260: 		return quicError(c.in.setErrorLocked(errors.New("tls: handshake data received at wrong level")))